/********************************************************************************
 *      Copyright:  (C) 2024 LingYun<iot25@lingyun>
 *                  All rights reserved.
 *
 *       Filename:  sqlite_database.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(09/12/24)
 *         Author:  LingYun <iot25@lingyun>
 *      ChangeLog:  1, Release initial version on "09/12/24 13:55:29"
 *                 
 ********************************************************************************/
#ifndef _SQL_DB_H
#define _SQL_DB_H

#include "sqlite_database.h"

int create_db_and_table(sqlite3 *db);
int insert_data(sqlite3 *db,const char *buf);
int select_data(sqlite3 *db,char *buf);
int updata_data(sqlite3 *db,const char *buf);
int delete_data(sqlite3 *db,const char *buf);
int callback(void *data,int argc,char **argv,char **col_time);

#endif

